package com.yxy.service.impl;

import com.yxy.mapper.GaudMapper;
import com.yxy.service.GaudService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GaudServiceImpl implements GaudService {

    @Autowired
    private GaudMapper gaudMapper;

    /**
     * 根据城市名获取adcode
     * @param cityName
     * @return
     */
    @Override
    public int getAdcodeByCityName(String area) {
        int adcodeByCityName = gaudMapper.getAdcodeByCityName(area);
        System.out.println(adcodeByCityName);
        return gaudMapper.getAdcodeByCityName(area);
    }
}
